/*
 *  Copyright 2005 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.blandware.atleap.model.core.statistics;

/**
 * <p>Describes some client-side software (for example, browser or OS).</p>
 * <p><a href="ClientSideSoftwareDescription.java.html"><i>View source</i></a></p>
 *
 * @author Roman Puchkovskiy <a href="mailto:roman.puchkovskiy@blandware.com">
 *         &lt;roman.puchkovskiy@blandware.com&gt;</a>
 * @version $Revision: 1.1 $ $Date: 2006/05/26 08:13:30 $
 */
public class ClientSideSoftwareDescription {

    protected Integer id;
    protected String title;
    protected String iconFile;
    protected String pattern;
    protected String antiPattern;

    /**
     * Returns id.
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Sets id (as string).
     *
     * @param identifier string to set
     */
    public void setIdentifier(String identifier) {
        id = Integer.valueOf(identifier);
    }

    /**
     * Returns title.
     *
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * Sets title.
     *
     * @param title title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * Returns icon file name.
     *
     * @return icon file name
     */
    public String getIconFile() {
        return iconFile;
    }

    /**
     * Sets icon file name
     *
     * @param iconFile name to set
     */
    public void setIconFile(String iconFile) {
        this.iconFile = iconFile;
    }

    /**
     * Returns regex pattern which creates a suspicion that user agent is THIS.
     *
     * @return pattern
     */
    public String getPattern() {
        return pattern;
    }

    /**
     * Sets regex pattern which creates a suspicion that user agent is THIS.
     *
     * @param pattern pattern to set
     */
    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    /**
     * Sets regex pattern which assures that user agent is NOT THIS.
     *
     * @return anti-pattern
     */
    public String getAntiPattern() {
        return antiPattern;
    }

    /**
     * Sets regex pattern which assures that user agent is NOT THIS.
     *
     * @param antiPattern anti-pattern to set
     */
    public void setAntiPattern(String antiPattern) {
        this.antiPattern = antiPattern;
    }
}
